﻿@model QLNhaHangTiecCuoi.Models.MonAn

@{
    ViewBag.Title = "Chỉnh sửa món ăn";
    Layout = "~/Views/Shared/_LayoutQLNhaBep.cshtml";
}
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="form-horizontal">
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.MaMonAn)
        <div class="wrapper">
            <h1>Chỉnh sửa món ăn</h1>
        </div>
        <div>
            <table class="center">
                <tr>
                    <td>
                        <label for="code" id="label">Tên món ăn:</label>
                    </td>
                    <td>
                        @Html.TextBoxFor(model => model.TenMonAn, new { @class = "textbox", maxlength = 50 })<b style="color: red"> *</b>
                        @Html.ValidationMessageFor(model => model.TenMonAn)
                    </td>
                </tr>
                <tr>
                    <td><label for="code" id="label">Mô tả:</label></td>
                    <td>
                        @Html.TextBoxFor(model => model.MoTa, new { @class = "textbox" })<b style="color: red"> *</b>
                        @Html.ValidationMessageFor(model => model.MoTa)
                    </td>
                </tr>
                <tr>
                    <td><label for="code" id="label">Tên loại món ăn:</label></td>
                    <td>
                        @Html.DropDownList("MaLoaiMonAn", new SelectList(ViewBag.ChonLoaiMonAn, "Value", "Text"), "----Chọn loại món ăn----", new { @class = "combobox" })<b style="color: red"> *</b>
                        @Html.ValidationMessageFor(model => model.MaLoaiMonAn)
                    </td>
                </tr>
                <tr>
                    <td><label for="code" id="label">Giá:</label></td>
                    <td>
                        @Html.TextBoxFor(model => model.Gia, new { @class = "textbox", maxlength = 10 })<b style="color: red"> *</b>
                        @Html.ValidationMessageFor(model => model.Gia)
                    </td>
                </tr>
                <tr>
                    <td><label for="code" id="label">Hình ảnh:</label></td>
                    <td>
                        @Html.TextBoxFor(model => model.HinhAnh, new { @class = "textbox" })
                        @Html.ValidationMessageFor(model => model.HinhAnh)
                    </td>
                </tr>
            </table>
            <div class="wrapper"><input type="submit" value="Cập nhật" class="btn btn-large btn-success button" /></div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}


